#include "../../../common/dmser.hpp"
#include <gflags/gflags.h>

DEFINE_string(access_key_id, "LTAI5t7bsYuKhwRDFQD8J7So", "阿里云短信验证码服务的密钥ID");
DEFINE_string(access_key_secret, "icDRjPFgcnaMlGSZMmqEkzkGbB54TS", "阿里云短信验证码服务的密钥");

DEFINE_bool(log_mode, false, "程序的运行模式: true-发布模式 false-调试模式");
DEFINE_string(log_file, "", "发布模式下，制定日志的输出文件");
DEFINE_int32(log_level, 0, "发布模式下，制定日志的输出等级");

int main(int argc, char *argv[])
{
    google::ParseCommandLineFlags(&argc, &argv, true);
    initLogger(FLAGS_log_mode, FLAGS_log_file, FLAGS_log_level);

    auto client = std::make_shared<zhong::dmser::DMSClient>(FLAGS_access_key_id, FLAGS_access_key_secret);
    client->sendCode("13147065653", "0000");
}

